#ifndef __PROTO_H__
#define __PROTO_H__

#define TIMEOUT_T   30
#define NUL		0x00
#ifndef MIN
#define MIN(x,y)    ((x) < (y) ? (x) : (y))
#endif
#ifndef MAX
#define MAX(x,y)    ((x) > (y) ? (x) : (y))
#endif

#define __ENTER_KEY		-1
#define __BACK_KEY		-2
#define __EXIT_KEY		-3


typedef unsigned char 	uint8;
typedef char 			int8;

//#ifdef WIN32
//	typedef unsigned short int 	uint16;
//	typedef short int			int16;
//#else
	typedef unsigned int 	uint16;
	typedef int			int16;
//#endif

typedef unsigned long 	uint32;
typedef long			int32;
typedef char 			tlv_t;

#ifdef WIN32
	typedef __int64		amount_t;
	typedef	__int64		int64;
	typedef unsigned __int64	uint64;
#else
	typedef unsigned long long amount_t;
	//typedef long long int64;
	typedef unsigned long long uint64;
#endif

#ifdef WIN32
	typedef uint8 		byte;
#endif

typedef unsigned long	bits32;


#define RET_OK				0
#define LDISK		"HOST"//"FCRD"$

long    atol( const char *s);

#endif



